<?php 
	$configFactory = ConfigFactory::getInstance();
	$translator = LanguageFactory::getInstance(); 
?>

<div id='header'>
	<div id='application_title'><?php echo $configFactory->getConfig()->application->title; ?></div>

	<div id='application_menu'>
		<a href='/home' class='clean_link_blue bold'><?php echo strtoupper($translator->getTranslation("Home"));?></a>
		<a href='/projects' class='clean_link_white'><?php echo strtoupper($translator->getTranslation("Projects"));?></a>
		<a href='/groups' class='clean_link_white'><?php echo strtoupper($translator->getTranslation("Groups"));?></a>
		<a href='/blog' class='clean_link_white'><?php echo strtoupper($translator->getTranslation("Blog"));?></a>
		<?php 
			$auth = Zend_Auth::getInstance();
			if(!$auth->hasIdentity()){
		?>
			<a href="#login-box" class='login-window custom_btn grey'><?php echo $translator->getTranslation("Login");?></a>
		<?php 
			}
			else
			{
		?>
			<a href="#account-box" class='custom_btn grey account-box'><?php echo $translator->getTranslation("MyAccount");?></a>
		<?php 	
			}
		?>
	</div>
	
	<div id="login-box" class="login-popup">
		<a href="#" class="close"><img src="/images/close_pop.png" class="btn_close" title="Close Window" alt="Close" /></a>
  		<form method="post" class="signin" action="/index/login">
        	<fieldset class="textbox">
	        	<label class="username">
	        		<span><?php echo $translator->getTranslation("Username"); ?></span>
	        		<input id="username" name="username" value="" type="text" />
	        	</label>
	        	<label class="password">
	        		<span><?php echo $translator->getTranslation("Password"); ?></span>
	        		<input id="password" name="password" value="" type="password" />
	        	</label>
	        	<input class="submit button" type="submit" value='<?php echo $translator->getTranslation("Login"); ?>' />
	        	<p>
	        	<a class="forgot clean_link_blue" href="#"><?php echo $translator->getTranslation("PasswordForgot"); ?></a>
	        	</p>        
        	</fieldset>
  		</form>
	</div>


</div>